package com.dd.shop4j.website.goods.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.dd.shop4j.goods.mapper.GoodsBrandMapper;
import com.dd.shop4j.goods.model.GoodsBrand;

/**
 * 商品品牌Service
 * @author tasngshu
 *
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class GoodsBrandService {

	@Resource private GoodsBrandMapper goodsBrandMapper;
	
	/**
	 * 查询所有商品的品牌
	 * @return
	 */
	public List<GoodsBrand> getAllGoodsBrand() {
		return goodsBrandMapper.queryBySelective(null);
	}
	
}
